package com.zy.utils.data

import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint


//辅助下标
//计数排序 辅助下标
class AssistPoint(builder: Builder) : Point(
    builder
) {
    override fun drawBackground(canvas: Canvas, paint: Paint) {
        //    public void drawRoundRect(Canvas canvas, Paint paint) {
        //        float x = getCenterX();
        //        float y = getCenterY();
        //        if (sorted) {
        //            paint.setColor(Color.GREEN);
        //        } else {
        //            paint.setColor(Color.BLUE);
        //        }
        //        canvas.drawRoundRect(x - per, y - per, x + per, y + per, per / 4, per / 4, paint);
        val x = centerX
        val y = centerY
        val old = paint.color
        paint.color = Color.BLACK
        canvas.drawLine(x - per, y - per, x + per, y - per, paint)
        paint.color = old
    }
}